//==============================================================================
// barracks_anim.txt
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define VINEA
{
   set hotspot
   {
      version
      {
         Visual Building VineA
      }
   }  
}

//==============================================================================
define VINEB
{
   set hotspot
   {
      version
      {
         Visual Building VineB
      }
   }  
}

//==============================================================================
define CypressB
{
   set hotspot
   {
      version
      {
         Visual Terrain G CypressB
      }
   }  
}

//==============================================================================
define Shield
{
   TechLogic Copper shields/Bronze shields/Iron shields
   set hotspot
   {
      version
      {
         Visual Attachments G Shield wood
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield iron
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield bronze
      }
   }
}

//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}

//==============================================================================

anim idle
{
//---------------------------------Norse------------------------------------------//
      //---------------------------Age 1--------------------------------//
   SetSelector
   {
      TechLogic age 2/age 3/age 4/Snow Age 1/Snow Age 2/Snow Age 3/Snow Age 4
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N Barracks
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
      //---------------------------Age 2--------------------------------//
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N BarracksAge3
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
      //---------------------------Age 3--------------------------------//
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N BarracksAge4
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 1--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N Barracks
		ReplaceTexture building n shared01 2 map/snow norse age 2
		ReplaceTexture building n shared04 2 map/snow norse age 42
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
   
	//---------------------------Snow Age 2--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N Barracks
		ReplaceTexture building n shared01 2 map/snow norse age 2
		ReplaceTexture building n shared04 2 map/snow norse age 42
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 3--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N BarracksAge3
		ReplaceTexture building n shared01 3 map/snow norse age 3
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {

            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 4--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N BarracksAge4
		ReplaceTexture building n wallage4/snow norse age 4
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
}

}


//==============================================================================
anim Death
{
//---------------------------------Norse------------------------------------------//
      //---------------------------Age 1--------------------------------//
   SetSelector
   {
      TechLogic age 2/age 3/age 4/Snow Age 1/Snow Age 2/Snow Age 3/Snow Age 4
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N Barracks_death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot	
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
      //---------------------------Age 2--------------------------------//
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N BarracksAge3_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
      //---------------------------Age 3--------------------------------//
      SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
               Visual Building N BarracksAge4_death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
					connect Smoke2 Dust hotspot
					connect Smoke3 Dust hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 1--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N Barracks_death
		ReplaceTexture building n shared01 2 map/snow norse age 2
		ReplaceTexture building n shared04 2 map/snow norse age 42
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
   
	//---------------------------Snow Age 2--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N Barracks_death
		ReplaceTexture building n shared01 2 map/snow norse age 2
		ReplaceTexture building n shared04 2 map/snow norse age 42
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 3--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N BarracksAge3_death
		ReplaceTexture building n shared01 3 map/snow norse age 3
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {

            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
	//---------------------------Snow Age 4--------------------------------//
 	SetSelector
      {
         ConstructionLogic 0 33 66
         set hotspot
         {
            version
            {
                Visual Building N BarracksAge4_death
		ReplaceTexture building n wallage4/snow norse age 4
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium A
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building Construction Medium B
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
         set hotspot
         {
            version
            {
               Visual Building N ConstructionBarracks
		         connect attachpoint N_Long_Brick hotspot
		         connect face N_Long_Brick hotspot
		         connect chin N_Medium_Brick hotspot
		         connect leftfoot N_Medium_Brick hotspot
		         connect lefthand N_Small_Brick hotspot
		         connect leftleg N_Small_Brick hotspot
            }
         }
      }
}

}
